using System;
using System.Collections.Generic;
using System.Text;

namespace LumiSoft.Net.MIME
{
    /// <summary>
    /// Provides MIME related utility methods.
    /// </summary>
    public class MIME_Utils
    {
        #region static method EncodeWord

        /// <summary>
        /// Encodes non-ascii word with MIME <b>encoded-words</b> method. Defined in RFC 2047 2.
        /// </summary>
        /// <param name="word">Word to encode.</param>
        /// <returns>Returns encoded word.</returns>
        /// <exception cref="ArgumentNullException">Is raised when <b>word</b> is null.</exception>
        public static string EncodeWord(string word)
        {
            if(word == null){
                throw new ArgumentNullException("word");
            }

            // TODO:
            throw new NotImplementedException();
        }

        #endregion

        #region static method DecodeWord

        /// <summary>
        /// Decodes non-ascii word with MIME <b>encoded-words</b> method. Defined in RFC 2047 2.
        /// </summary>
        /// <param name="word">Word to decode,</param>
        /// <returns>Returns decoded word.</returns>
        /// <exception cref="ArgumentNullException">Is raised when <b>word</b> is null.</exception>
        public static string DecodeWord(string word)
        {
            if(word == null){
                throw new ArgumentNullException("word");
            }

            // TODO:
            throw new NotImplementedException();
        }

        #endregion
    }
}
